package com.gw.smscheck.service.sys;

import com.github.pagehelper.PageInfo;
import com.gw.smscheck.entity.sys.DataDictionary;

import java.util.List;

public interface DataDictionaryService {
	/**
	 * 分页查询
	 * @param
	 * @return
	 */
	public List<DataDictionary> pageSelect(DataDictionary dto);
	
	/**
	 * 通过code获取子节点
	 * @param
	 * @return
	 */
//	public List<DataDictionary> getChildrenById(DataDictionary dto);
	
	/**
	 * 新增
	 * @param dataDictionary
	 * @return
	 */
	public Integer add(DataDictionary dataDictionary);
	
	/**
	 * 通过id获取
	 * @param dataDictionary
	 * @return
	 */
	public DataDictionary getById(DataDictionary dataDictionary);
	
	/**
	 * 修改
	 * @param dataDictionary
	 * @return
	 */
	public Integer update(DataDictionary dataDictionary);
	
	/**
	 * 删除
	 * @param dataDictionary
	 * @return
	 */
	public Integer del(DataDictionary dataDictionary);
	
}
